package mango.web.client.admin;

import java.util.ArrayList;
import java.util.List;

import mango.web.client.C;
import mango.web.client.Vo;

import com.google.gwt.user.client.rpc.IsSerializable;

public class OrchardVo extends Vo implements IsSerializable {
	public Integer orchardId;
	public Integer memberId;
	public String physicalLocation = "";
	public String postCode = "";
	public String state = "";
	public String emailContactId = "";
	public String status = "";

	public List<TreeVo> treeList = new ArrayList<TreeVo>();

	public String getLocation() {
		String str = C.getFirstLine(this.physicalLocation);
		if ("".equals(str)) str = "[empty]";
		if ("suspended".equals(this.status)) {
			str += " [" + this.status + "]";
		}
		return str;
	}
	
	public String getStatus() {
		return C.getStatus(this.status);
	}
}
